package org.wisigoth.chat.client.jabber;

import javax.swing.ImageIcon;

import org.wisigoth.chat.client.Avatar;

public enum AvatarImpl implements Avatar {

	EMPIRE("empire"), FISHED("fished"), FOOT("foot"), GIRL("girl"), GRENADE(
			"grenade"), JEDI("jedi"), JESTER("jester"), PIG("pig"), POMPOM(
			"pompom");

	private String avatarName;

	private AvatarImpl(String name) {
		this.avatarName = name;
	}

	public String getAvatarName() {
		return this.avatarName;
	}

	public ImageIcon getAvatarImage() {
		return new ImageIcon("resources/images/avatar/" + this.getAvatarName()
				+ ".jpg");
	}

}